import http from '@/common/utils/request.js'

export const trade = {
	//获取列表
	getTradeList(data){
		return http.get('/merchant/trade/', {params:data, custom:{}})
	},
	//获取详情
	getItemById(data){
		return http.post('/merchant/trade/getItemById/', data, {custom:{}})
	},
	//创建
	createTrade(data){
		return http.post('/merchant/trade/createAction/', data, {custom:{}})
	},
	//新增
	updateTrade(data){
		return http.post('/merchant/trade/updateAction/', data, {custom:{}})
	},
}